<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>模拟提交</title>
</head>
<body>


<input type="button" id="button" value="确定">
<div id="show"></div>

<!--<form action="http://www.tp6.com/rely/get" method="post">-->
<!--    <input type="text" name="name" value="Lee">-->
<!--    <input type="hidden" name="_method" value="PUT">-->
<!--    <input type="submit" value="提交">-->
<!--</form>-->

<!-- 引入jQuery文件 -->
<script src="js/jquery-3.4.1.js"></script>
<script>
    $("#button").click(function () {
        let id = 5;
        $.ajax({
            type: "DELETE",
            data: {
                'id': id,
                'type': 1
            },
            url: "http://www.tp6.com/rely/get",
            success: function (res) {
                // console.log(res);
                $('#show').html(res);
            }
        });
    });
</script>
</body>
</html>